// 自动生成模板LevelThree
package hierarchy

import (
	"gitcode.com/G-YT/ANN/server/global"
)

// LevelThree 结构体
type LevelThreeWithArt struct {
	global.GVA_MODEL
	Key        string             `json:"key" form:"key" gorm:"column:key;comment:唯一标识;"`
	Value      string             `json:"value" form:"value" gorm:"column:value;comment:展示名称;"`
	LevelTwoID uint               `json:"levelTwoID" form:"levelTwoID" gorm:"column:level_two_id;comment:二级ID;"`
	Graphics   []FdArticleGraphic `json:"articles" form:"articles" gorm:"foreignKey:LevelThreeID;references:ID;comment:;"`
	Audios     []FdArticleAudio   `json:"audios" form:"audios" gorm:"foreignKey:LevelThreeID;references:ID;comment:;"`
	Videos     []FdArticleVideo   `json:"videos" form:"videos" gorm:"foreignKey:LevelThreeID;references:ID;comment:;"`
}

// LevelThree 结构体
type LevelThreeReq struct {
	ID         uint   `json:"id" form:"id" gorm:"column:id;comment:唯一标识;"`
	Key        string `json:"key" form:"key" gorm:"column:key;comment:唯一标识;"`
	Value      string `json:"value" form:"value" gorm:"column:value;comment:展示名称;"`
	LevelTwoID uint   `json:"levelTwoID" form:"levelTwoID" gorm:"column:level_two_id;comment:二级ID;"`
	List       any    `json:"list"`
}

// LevelThree 结构体
type LevelThree struct {
	global.GVA_MODEL
	Key        string `json:"key" form:"key" gorm:"column:key;comment:唯一标识;"`
	Value      string `json:"value" form:"value" gorm:"column:value;comment:展示名称;"`
	LevelTwoID uint   `json:"levelTwoID" form:"levelTwoID" gorm:"column:level_two_id;comment:二级ID;"`
}

// TableName LevelThree 表名
func (LevelThree) TableName() string {
	return "level_three"
}
